package g;

import java.io.IOException;

/* compiled from: ForwardingSink */
public abstract class j implements y {
    public final y a;

    public j(y yVar) {
        if (yVar != null) {
            this.a = yVar;
            return;
        }
        throw new IllegalArgumentException("delegate == null");
    }

    public a0 B() {
        return this.a.B();
    }

    public void close() throws IOException {
        this.a.close();
    }

    public void flush() throws IOException {
        this.a.flush();
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(getClass().getSimpleName());
        stringBuilder.append("(");
        stringBuilder.append(this.a.toString());
        stringBuilder.append(")");
        return stringBuilder.toString();
    }
}
